import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../views/layout.vue'
import Dashboard from '../views/dashboard.vue'
import JointCalculator from '../views/jointCalculator.vue'
import PoolAgreement from '../views/poolAgreement.vue'
import Workbench from '../views/workbench.vue'
// 直营联营项目
import Dojvprojects from "../views/dojvprojects.vue"
// 非直营联营项目
import Fdojvprojects from "../views/fdojvprojects.vue"
// 新增项目
import Newitem from "../views/newitem.vue"
//工作台详情
import workDetail from '../views/workDetail.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: Layout,children:[{
        path: 'dashboard',
        name: 'dashboard',
        component: Dashboard,
      },
      {
        path: 'jointCalculator',
        name: 'jointCalculator',
        component: JointCalculator
      },{
        path: 'poolAgreement',
        name: 'poolAgreement',
        component: PoolAgreement
      },{
        path: 'dojvprojects',
        name: 'dojvprojects',
        component: Dojvprojects
      },{
        path: 'fdojvprojects',
        name: 'fdojvprojects',
        component: Fdojvprojects
      },{
        path: 'newitem',
        name: 'newitem',
        component: Newitem
      },{
        path: 'workbench',
        name: 'workbench',
        component: Workbench
      },
      {
        //工作台详情
        path: 'workDetail',
        name: 'workDetail',
        component: workDetail,
      },
    ]
    }
  
  ]
})

export default router
